package com.superiron.scaffold.websocket;

import lombok.Data;
import org.springframework.web.socket.WebSocketSession;

import java.util.List;
import java.util.Set;

@Data
public class WebsocketSubSession {

    private WebSocketSession session;
    //订阅的设备
    private Set<String> deviceIds;
    private Boolean ployFlag = false;
    private List<String> keys;

    public boolean isSub(String deviceId){
        return deviceIds.contains(deviceId);
    }
}
